package com.example.dao;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.example.entity.User;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

/**
 * Create By ChenXiAoBin
 * on 2019/4/28
 */
public interface IUserDao extends BaseMapper<User> {

    Integer selectById();


    User selectId(Integer id);

    @MapKey("id")
    Map<Integer, Map<String, Object>> getUserInfoMap();

    /**
     * 根据ID查询
     * @param map
     */
    List<User> selectOneById(Map map);
}
